import { request } from './request.js'

export default {
  // 登录
  login: function (params) {
    return request('user/v1/login', params)
  },
  // 我的顾客
  getCustomerList: function (params) {
    return request('user/v1/my/customer', params)
  },
  //用户首页-个人信息
  getUserIndexData (params) {
    return request('user/v1/info', params)
  },
  // 开通达人店
  getOpenTalent (params) {
    return request('user/v1/dredge/talent', params)
  },
  // 提现
  getWithdraw (params) {
    return request('user/v1/withdraw', params)
  },
  // 账户明细
  getFlowing (params) {
    return request('user/v1/flowing', params)
  },
  // 我的宝贝
  getAssetList (params) {
    return request('user/v1/asset', params)
  }
}